<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
    <title>广州友谊股票行飞洒情</title>
    <meta name="keywords" content="广州友谊,000987,广州友谊股票行情,000987股票行情,广州友谊最新股价,广州友谊实时行情,广州友谊实时资讯,000987行情走势">
    <meta name="description" content="云财经行情平台为您提供广州友谊000987股票实时行情走势，最新股价，实时新闻资讯，交易信息等与广州友谊000987股票相关的信息与服务.">

    <meta http-equiv="Cache-Control" content="no-transform"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>

    <link rel="Shortcut Icon" href="http://www.yuncaijing.com/favicon.ico" type="image/x-icon"/><!--地址栏和标签上显示图标-->
    <link rel="Bookmark" href="http://www.yuncaijing.com/favicon.ico" type="image/x-icon"/><!--收藏夹显示图标-->
    <link rel="stylesheet" href="http://www.yuncaijing.com/templates/statics/third/bootstrap/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="http://www.yuncaijing.com/templates/default/assets/css/base.css"/>

    <script>var siteUrl = 'http://www.yuncaijing.com/';</script>
    <script src="http://www.yuncaijing.com/templates/statics/third/jquery/js/jquery.min.js"></script>
    <script src="http://www.yuncaijing.com/templates/statics/third/bootstrap/js/bootstrap.min.js"></script>
    <script src="http://www.yuncaijing.com/templates/default/assets/js/common.js"></script>
    <script src="http://www.yuncaijing.com/templates/default/assets/js/global.js"></script>

    <script src="http://www.yuncaijing.com/templates/default/assets/js/tucao.js"></script>

    <script>
        var _hmt = _hmt || [];
        (function () {
            var hm = document.createElement("script");
            hm.src = "//hm.baidu.com/hm.js?b68ec780c488edc31b70f5dadf4e94f8";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
    <script
            type="text/javascript">
        var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");
        document.write(unescape("%3Cspan id='cnzz_stat_icon_1257026985'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s11.cnzz.com/stat.php%3Fid%3D1257026985' type='text/javascript'%3E%3C/script%3E"));
        document.getElementById("cnzz_stat_icon_1257026985").style.display = "none";
    </script>
    <script>
        (function () {
            var bp = document.createElement('script');
            bp.src = '//push.zhanzhang.baidu.com/push.js';
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(bp, s);
        })();
    </script>

    <script>
        $(function () {
            $('body').on('mouseover', 'a', function (e) {
                var show_chart_href = $(this).attr("href");
                if (typeof(show_chart_href) != 'undefined' && show_chart_href) {
                    if (show_chart_href.indexOf("stock/index") > 0) {
                        var show_chart_code = show_chart_href.substr(show_chart_href.lastIndexOf("/") + 1);

                        var dsrc = "";
                        if (show_chart_code.substr(0, 1) == '6' || show_chart_code == '699001')dsrc = 'sh' + show_chart_code;
                        else  dsrc = 'sz' + show_chart_code;
                        dsrc = "http://image.sinajs.cn/newchart/small/n" + dsrc + ".gif";


                        var oImg = $('#show-chart');

                        if (oImg.length == 0) {
                            oImg = $('<div>').attr('id', 'show-chart');
                            oImg.append('<img>')
                            $('body').append(oImg)
                        }
                        $(new Image()).attr('src', dsrc).load(function () {
                            var _x_left = e.pageX + 10;
                            var _y_top = e.pageY + 20;
                            if (e.pageX >= 1000)_x_left = e.pageX - 260;
                            if (e.pageY > 760)_y_top = e.pageY - 150;

                            oImg.find('img').attr('src', dsrc);
                            oImg.find('img').css('width', '100%');
                            oImg.find('img').css('padding', '8px');
                            oImg.css({
                                left: _x_left,
                                top: _y_top,
                                position: 'absolute',
                                'background-color': '#fff',
                                'border': '1px solid #000',
                                'z-index': 9999999
                            }).show();
                        });

                    }
                }
            }).mouseout(function () {
                $('#show-chart').hide()
            });
        })
    </script>		<link rel="stylesheet" href="http://www.yuncaijing.com/templates/default/assets/css/share.css" />
    <link rel="stylesheet" href="http://www.yuncaijing.com/templates/default/assets/css/ycj_charts.css" />
    <link rel="stylesheet" href="http://www.yuncaijing.com/templates/default/assets/css/guide.css" />
    <script src="http://www.yuncaijing.com/templates/default/assets/js/jquery.mousewheel.js"></script>

    <script src="http://www.yuncaijing.com/templates/statics/third/js/swfobject.js"></script>
    <script src="http://www.yuncaijing.com/templates/statics/third/js/web_socket.js"></script>
    <script src="http://www.yuncaijing.com/templates/statics/third/js/json.js"></script>
    <script src="http://www.yuncaijing.com/templates/default/assets/js/ycj_charts.js"></script>
    <script src="http://www.yuncaijing.com/templates/default/assets/js/stock.js"></script>


    <style>
        #detail-popover-wrap,
        html,body{
            -ms-overflow-style: scrollbar;
        }
        .border-top-gray{
            border-top: 4px solid #ccc;
        }
        .border-top-blue{
            border-top: 4px solid #304e9a;
            color: #304e9a;
            font-weight: bold;
        }
        .event{
            position: relative;
            height: -webkit-calc(100% - 71px);
            height: -moz-calc(100% - 71px);
            height: calc(100% - 71px);
        }
        .event:after{
            content: "";
            width: 1px;
            height: 100%;
            background-color: #777;
            position: absolute;
            top: 0;
            left: 10px;
        }

        .reports a{
            color: #000;
            text-decoration: none;
        }
        .reports a:hover p{
            color: #304E9A;
            text-decoration: underline;
        }
        .popover-content{
            padding: 0;
        }
        .detail{
            padding: 9px 10px;
        }
        .popover > .popover-title{
            display: none;
        }
        td{
            padding: 3px 1px !important;
            border-top: 0 !important;
        }
        #amo-detail{
            max-width: 400px;
            padding: 4px;
            border-bottom: 1px solid #ccc;
            overflow: auto;
        }
        #amo-detail table{
            margin-bottom: 0;
        }
        .deal li, .property li{
            position: relative;
        }
        .charts {
            width: calc(100% - 488px);
            width: -moz-calc(100% - 488px);
            width: -webkit-calc(100% - 488px);
        }
        .signals {
            width: 194px;
        }
        .what-news{
            padding: 10px;
        }
        .disclose{
            margin-top: 0.6em;
        }
        .relate-stk{
            display: inline-block;
            width: inherit;
            height: auto;
            line-height: inherit;
            border: none;
            margin: 0;
            text-align: left;
        }
        #detail-popover-wrap{
            max-width: 32rem;
            max-height: 40rem;
            overflow-y: auto;
            overflow-x: hidden;
        }
        #detail-popover-wrap .detail{
            width: auto;
            text-align: justify;
        }
        .popover-title{
            line-height: 1.4rem;
        }
        .popover-title .tiny-text{
            padding-left: 1.3rem;
            font-weight: normal;
        }
    </style>

</head>

<body class="normal-text" onload="wsInit()">

<style>
    #hint-modal {
        z-index: 999999;
    }
    .tipsBox {
        border-radius: 6px !important;
        text-align: center;
        margin-bottom: auto;
        border: 1px solid #304E9A;
        padding: 10px;
        width: 145px;
        color: #39CB67;
        background-color: #FFFFFF;
        z-index: 9999999;
        margin-left: 47%;
        margin-right: auto;
        top: 5%;
        opacity:0;
        position: fixed;
    }
    .btn-adjust .btn{
        padding-left: 9px;
        padding-right: 9px;
    }
    .activitys a{
        display: inline-block;
        /*min-width: 110px;*/
        padding: 0px 6px;
        margin: 4px 0;
        height:28px;
    }
    .activitys a:hover,
    .activitys a:visited,
    .activitys a:focus{
        text-decoration: none;
        color: #fff;
        font-weight: normal;
    }
    .tooltip.right{
        width: auto;
        border-left: none;
    }
</style>

<link rel="stylesheet" href="http://www.yuncaijing.com/templates/default/assets/css/login.css"/>


    <script>
        $(function () {
            $('[data-toggle="tooltip"]').tooltip({

                container: 'body'

            });

            $('.nav-icon a').not( $('.nav-icon a').eq(0) ).click(function(e){
                if( $(this).attr('data-toggle') ){
                    $('.nav-icon').click();
                }else{
                    e.stopPropagation();
                }
            });
        });
    </script>


<div class="charts fl" id="mousewheel_4">
    <!--<a id="supper-link" href="http://www.yuncaijing.com/help/guide" target="_blank">超级行情图的超级之处</a>-->
    <ul>
        <li class="charts-first show">
            <div class="time">
                <div class="capi-loading-svg"><img src="http://www.yuncaijing.com/templates/default/assets/image/charts/loading.gif" alt=""><i></i></div>
            </div>
            <div class="k-small">
                <div class="capi-loading-svg"><img src="http://www.yuncaijing.com/templates/default/assets/image/charts/loading.gif" alt=""><i></i></div>
            </div>
        </li>
        <li class="charts-second">
            <div class="k">
                <div class="capi-loading-svg"><img src="http://www.yuncaijing.com/templates/default/assets/image/charts/loading.gif" alt=""><i></i></div>
            </div>
            <div class="charts-tab tiny-text">
                <span class="fl active">市场关注度</span>
                <span class="fl">MACD</span>
                <span class="fl">KDJ</span>
                <span class="fl">RSI</span>
            </div>
        </li>
    </ul>
</div>




















<script>
    function onMouseScroll(){
        mousewheel_flag=false;
    }
    function offMouseScroll(){
        mousewheel_flag=true
    }
    $('#mousewheel_3').hover( offMouseScroll, onMouseScroll );
    $('.detail-popover').click(function(){
        setTimeout(function(){
            $('#detail-popover-wrap').hover( offMouseScroll, onMouseScroll );
        },1)
    })
    var mousewheel_flag=false;
    var stkCode = '000987';
    var sco_up='',sco_down='',temp_code='',up_down='';

    var is_mousewheel=1;
    if(!is_mousewheel) sessionStorage.setItem("my_codes",'');

    var my_codes=sessionStorage.getItem("my_codes");
    if(my_codes!="" && typeof(my_codes) != "undefined" && my_codes!=null && my_codes.split(',').length>2)my_codes=my_codes.split(',');
    else {
        if(sessionStorage.getItem(stkCode)){
            up_down=sessionStorage.getItem(stkCode).split(',');
            sco_up=up_down[0];
            sco_down=up_down[1];
            my_codes ='';
            sessionStorage.setItem("my_codes",'');
        }
        else{
            $.ajax({
                type: "get",
                url: siteUrl + 'stock/get_stocks_order/' + stkCode,
                dataType:'json',
                success: function(data) {
                    sco_up=data.up;
                    sco_down=data.down;
                    my_codes ='';
                    sessionStorage.setItem("my_codes",'');

                    //cache
                    sessionStorage.setItem(stkCode,sco_up+','+sco_down);
                }
            });
        }
    }

    function mousewheel_lb_function(delta,is_order){
        if(!mousewheel_flag){
            mousewheel_flag=true;
            if(my_codes!=''){
                var i_index =-1;
                var my_codes_length=my_codes.length-1;
                for(var i=0;i<my_codes_length;i++){
                    if(stkCode==my_codes[i]){
                        i_index=i;
                        break;
                    }
                }

                if(!is_order){
                    if(delta>0){  //up
                        if(--i_index<0)i_index=my_codes_length-1;
                    }
                    else if(delta<0){ //down
                        if(++i_index>=my_codes_length)i_index=0;
                    }
                }
                else{
                    if(delta<0){  //up
                        if(--i_index<0)i_index=my_codes_length-1;
                    }
                    else if(delta>0){ //down
                        if(++i_index>=my_codes_length)i_index=0;
                    }
                }

                temp_code=my_codes[i_index];
            }
            else{
                if(!is_order){
                    if(delta>0)temp_code=sco_up;  //up
                    else if(delta<0)temp_code=sco_down;  //down
                }
                else{
                    if(delta<0)temp_code=sco_up; //up
                    else if(delta>0)temp_code=sco_down; //down
                }
            }

            if(temp_code!='' && mousewheel_flag==true)location.href="http://www.yuncaijing.com/stock/index/"+temp_code;
        }
    }

    function mousewheel_function(event, delta,my_codes){
        if(my_codes!='')mousewheel_lb_function(delta,false);
        else mousewheel_lb_function(delta,true);
    }

    $(function(){
        $('#mousewheel_1').bind('mousewheel',function(event, delta) {
            if(!event.ctrlKey){
                if($(event.target).parents(".search-list").length > 0){
                    e.stopPropagation();
                    return false;
                }
                mousewheel_function(event, delta,my_codes);
            }
        });
        $('#mousewheel_2').bind('mousewheel',function(event, delta) {
            if(!event.ctrlKey){
                mousewheel_function(event, delta,my_codes);
            }
        });
        $('#mousewheel_3').bind('mousewheel',function(event, delta) {
            if(!event.ctrlKey){
                mousewheel_function(event, delta,my_codes);
            }
        });
        $('#mousewheel_4').bind('mousewheel',function(event, delta) {
            if(!event.ctrlKey){
                mousewheel_function(event, delta,my_codes);
            }
        });
    });

    (function(){
        $('.share-title').on('click','button',function(){

            if($('#sim-login').attr('value')==''){
                $('#sim-login').click();
                return false;
            }

            $('#evtNewsContent').val('');
            $('input[name="source_url"]').val('');
            $('input[name="captcha_code"]').val('');
            $('#captcha_tips_id').html('验证码不能为空').hide();
            $('#checkCodeImg').click();
            $('#msg_source_id').prop('checked',true);


            $("#two_form").show();
            $("#sub_done_id").hide();
        });


        $('#two_form').submit(function(e){
            var sub_flag=true;
            if(check($('#evtNewsContent').val(),function(){sub_flag=false; $('#evtNewsContent_tips').show()})) $('#evtNewsContent_tips').hide();
            if(check($('input[name="source_url"]').val(),function(){sub_flag=false; $('#evtNewsUrl_tips').show()}))$('#evtNewsUrl_tips').hide();
            if(check($('input[name="captcha_code"]').val(),function(){sub_flag=false; $('#captcha_tips_id').show()}))$('#captcha_tips_id').hide();

            if(!sub_flag)e.preventDefault();

            var isRightCaptcha = checkCaptcha('brokeCaptcha', $('#brokeCaptcha').val());
            if(isRightCaptcha){
                $('#captcha_tips_id').html('验证码正确').show();
                $.ajax({
                    type: "post",
                    url: 'http://www.yuncaijing.com/search/msg_omit',
                    dataType:'json',
                    data: $("#two_form").serialize(),
                    success: function(data) {
                        $("#two_form").hide();
                        $("#sub_done_id").show();
                    }
                });
            }else{
                $('#captcha_tips_id').html('验证码错误').show();
            }
            return false;
        });

        function check(v,fn){
            if(!v){
                fn();
                return false
            }
            return true
        }

    })();

    function EventNewsBox(EvtNews, type, nothing){
        $('.event .capi-loading-svg').remove();
        if(nothing) return;

        var dom = '',evtnews=$('.events ul');
        $.each(EvtNews, function (i, item) {
            color='gray-text';
            if(EvtNews[i]['color']) color=EvtNews[i]['color'];
            if(EvtNews[i].etitle) EvtNews[i].etitle = '[' + EvtNews[i].etitle + ']'; else  EvtNews[i].etitle ='';
            dom += '<li class="animate" data-capi-evt="' + EvtNews[i].nid + '" '+(EvtNews[i].icon.length == 1 ? 'data-time-change' : '')+'>';
            dom += '<em>' + EvtNews[i].icon + '</em>';
            dom += '<time class="small-text '+color+'">';
            dom += EvtNews[i].date;
            dom += "&nbsp;&nbsp;<span>" + EvtNews[i].time + "</span>";
            dom += "<span class='gray-text tiny-text' style='float: right;  font-weight: 100'>" + EvtNews[i].from + "</span>";
            dom += '</time>';
            dom += '<p class="normal-text">' + EvtNews[i].title + '</p>';
            dom += '<p class="text-right"><a  class="msg-tooltip" href="' + siteUrl + 'event/view/' + EvtNews[i].eid + '" >' + EvtNews[i].etitle + '</a></p>';
            dom += '</li>';
        });
        if(type){
            evtnews.prepend(dom);
        }else{
            evtnews.append(dom);
        }
    }

    //公告
    function NoticeBox(notices){
        if(!notices || notices.length == 0) return;

        var dom = '', NoticeBox=$('.notices ul');
        $.each(notices, function(i, item){
            $.each(item.text, function(ii, notice){
                dom += '<li class="animate" data-capi-notice="' + item.index + '">';
                dom += '<time class="small-text gray-text">';
                dom += notice.time;
                dom += "<span class='tiny-text' style='float: right;  font-weight: 100'>公司公告</span>";
                dom += '</time>';
                dom += '<p class="normal-text">' + notice.title + '</p>';
                dom += '</li>';
            })
        })
        NoticeBox.html(dom);
    }

    //研报
    function ReportBox(reports){
        if(!reports || reports.length == 0) return;

        var dom = '', ReportBox=$('.reports ul');
        $.each(reports, function(i, item){
            $.each(item.text, function(ii, report){
                dom += '<li class="animate" data-capi-report="' + report.id + '"><a href="'+siteUrl+'news/view/'+report.id+'" target="_blank">';
                dom += '<time class="small-text gray-text">';
                dom += report.time;
                dom += "<span class='tiny-text' style='float: right;  font-weight: 100'>机构研报</span>";
                dom += '</time>';
                dom += '<p class="normal-text">' + report.title + '</p>';
                dom += '</a></li>';
            })
        })
        ReportBox.html(dom);
    }

    function addCareStk(code){
        $.get(siteUrl + 'mystock/add?code=' + code,function(data){
            if(data.status == 700){
                $('.item_' + code).html('<em onclick="delCareStk(\''+ code +'\')">-自选股</em>');
            }else if(data.status == 404){
                showLoginModal();
            }
        },'json');
    }

    function delCareStk(code){
        $.get(siteUrl + 'mystock/del?code=' + code,function(data){
            if(data.status == 700){
                $('.item_' + code).html('<em onclick="addCareStk(\''+ code +'\')">+自选股</em>');
            }else if(data.status == 404){
                showLoginModal();
            }
        },'json');
    }

    function wsInit(){
        ws = new WebSocket("ws://" + domain + ":" + port);// 创建websocket

        ws.onopen = function(){// 当socket连接打开时
            timeid && window.clearInterval(timeid);

            if(reconnect == false){
                // 登录
                var login_data = JSON.stringify({"type":"login","room":"INSTANT"});
                ws.send(login_data);
                reconnect = true;
            }else{
                // 断线重连
                var relogin_data = JSON.stringify({"type":"login","room":"INSTANT"});
                ws.send(relogin_data);
            }
        };


        ws.onmessage = function(e){// 当有消息时根据消息类型显示不同信息
            var data = JSON.parse(e.data);

            switch(data['type']){
                    // 服务端ping客户端
                case 'ping':
                    break;
                case 'instant':
//							console.log(data);
                    instantHandle(data['message']);

                    //处理竞价期间重新开始画图 //刷新页面
                    var readyTime = data['message'].time;
                    if( readyTime >= '09:15:00' && readyTime <= '09:30:00' && window.newTimeData.length ){
                        location.reload(true);
                    }

                    break;
                case 'instantLine':
                    var msg=data['message'];
                    console.log('A bad test:', msg)

                    if( msg.close ){	//当服务器有数据返回
                        var time=msg.time;
                        var WIN=window;

                        //console.log( msg, '---test---' )	//测试分时图到了9:30无刷新情况

                        if(time=='09:30' && !window.newTimeData.length){
                            location.reload(true);

                        }else if(time>'09:30' && time!='13:00'){

                            var xAxis=WIN.syncChartsData.time.xAxis;
                            if( time!=xAxis[xAxis.length-1].substring(11) ){
                                WIN.chartsUpdate( msg );		//K线，分时一起更新
                            }
                        }
                    }
                    break;

                case 'instantTransaction':
                    instantTransactionHandle(data['message']);
                    break;
            }
        };

        ws.onclose = function(){
            //console.log("连接关闭，定时重连");
            // 定时重连
            window.clearInterval(timeid);
            timeid = window.setInterval(wsInit, 6000);
        };
        ws.onerror = function(){
            //console.log("出现错误");
        };
    }

    $(function(){
        setTimeout(function(){
            setInterval(function(){
                if(reconnect){
                    ws.send(JSON.stringify({"type":"instant","code":stkCode}));
                    ws.send(JSON.stringify({"type":"instantLine","code":stkCode}));
                    ws.send(JSON.stringify({"type":"instantTransaction","code":stkCode}));
                }
            },10000);
        },10000)

        //事件箱选择
        $('ul[aria-labelledby=dLabel] li').on('click', function(){
            var _this = $(this);
            var tag = $(this).attr('tag');
            var tagName = $(this).text();
            $('#dLabel').text(tagName);
            $('.dLabelbottom .col-md-4').removeClass('border-top-blue');
            $('.dLabelbottom .col-md-4[tag='+ tag +']').addClass('border-top-blue');
            $('.event').hide();
            $('.' + tag).show();
        })

        $('.dLabelbottom .col-md-4').on('click', function(){
            var _this = $(this);
            var tag = $(this).attr('tag');
            var tagName = $(this).text();
            $('#dLabel').text(tagName);
            $('.dLabelbottom .col-md-4').removeClass('border-top-blue');
            $(this).addClass('border-top-blue');
            $('.event').hide();
            $('.' + tag).show();
        })

    });
    $(".openbtn").click(function(){
        $(".guide-modal").modal('hide');
    });
</script>
</body>
</html>